<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <button id="btnDel">删除</button>
    <button id="btnAdd">添加</button>
    <button id="btnEdit">编辑</button>

    <script>
      const btnDel = document.getElementById("btnDel");
      const btnAdd = document.getElementById("btnAdd");
      const btnEdit = document.getElementById("btnEdit");

      btnDel.onclick = () => console.log("Del");
      btnEdit.onclick = () => console.log("Edit");
      btnAdd.onclick = () => console.log("Add");
    </script>
  </body>
</html>
